#!/bin/bash

apt-get update
apt-get -y install tk-dev
apt-get -y install python3-tk
apt-get -y install libbz2-dev
apt-get	-y install docker.io
apt-get	-y install docker-compose
apt-get -y install python3
apt-get -y install python3-pip
apt-get	-y install ntpdate

docker load -i /collect_slave/resource/monitor/redis.tar
sleep 5

docker load -i /collect_slave/resource/monitor/prometheus.tar
sleep 5

docker load -i /collect_slave/resource/monitor/node_exporter.tar
sleep 5

docker load -i /collect_slave/resource/monitor/cadvisor.tar
sleep 5

mkdir "~/.pip" || exit
cp /collector_slave/resource/pip.conf ~/.pip/pip.conf

pip install --upgrade pip
pip install kafka
pip install requests
pip install torch
pip install pandas
pip install redis
pip install kubernetes
pip install scikit-learn